import request from '@/utils/request'

// 查询班级校区关系列表
export function listClassCampus(query) {
  return request({
    url: '/edu/classCampus/list',
    method: 'get',
    params: query
  })
}

// 查询班级校区关系详细
export function getClassCampus(relaId) {
  return request({
    url: '/edu/classCampus/' + relaId,
    method: 'get'
  })
}

// 新增班级校区关系
export function addClassCampus(data) {
  return request({
    url: '/edu/classCampus',
    method: 'post',
    data: data
  })
}

// 修改班级校区关系
export function updateClassCampus(data) {
  return request({
    url: '/edu/classCampus',
    method: 'put',
    data: data
  })
}

// 删除班级校区关系
export function delClassCampus(relaId) {
  return request({
    url: '/edu/classCampus/' + relaId,
    method: 'delete'
  })
}

// 导出班级校区关系
export function exportClassCampus(query) {
  return request({
    url: '/edu/classCampus/export',
    method: 'get',
    params: query
  })
}